from django.db import models


class AcademicAchievement(models.Model):
    title_ch = models.CharField(max_length=50, null=True)
    title_en = models.CharField(max_length=400, null=True)
    abstract = models.CharField(max_length=1500, null=True)
    author = models.CharField(max_length=50)
    language_type = models.CharField(max_length=10)  # 语言
    company = models.CharField(max_length=50, null=True)  # 科研机构
    copy_right = models.BooleanField(default=False)  # 权限
    pub_year = models.IntegerField(null=True)  # 发表时间
    pub_month = models.IntegerField(null=True)
    pub_day = models.IntegerField(null=True)
    reference = models.CharField(max_length=1000, null=True)  # 参考文献 不支持链接跳转
    department = models.CharField(max_length=50, null=True)  # 领域 二级学科
    key_word = models.CharField(max_length=100, null=True)  # 分号隔开的关键词
    file_path = models.FileField(null=True)  # 文件位置
    influence = models.DecimalField(max_digits=5, decimal_places=2, null=True)  # 影响力
    exp_ref = models.CharField(max_length=100, null=True)
    is_deleted = models.BooleanField(default=False)

